package com.ev.custom.dao;

import com.ev.custom.domain.UpkeepRecordDeviceDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 保养工单与实际设备中间表
 * @author ev-monitor
 * @email 286600136@qq.com
 * @date 2019-08-23 15:16:53
 */
@Mapper
public interface UpkeepRecordDeviceDao{

	UpkeepRecordDeviceDO get(Integer id);
	
	List<UpkeepRecordDeviceDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(UpkeepRecordDeviceDO upkeepRecordDevice);
	
	int update(UpkeepRecordDeviceDO upkeepRecordDevice);
	
	int remove(Integer id);
	
	int batchRemove(Integer[] ids);

	List<Map<String, Object>> deviceByRecordId(Map<String, Object> map);

	List<Map<String, Object>> deviceByRecordIdAgain(Map<String, Object> map);

	int removeByRecordId(Long id);

	int batchRemoveByRecordId(Long[] ids);
}
